@import url('https://fonts.googleapis.com/css?family=Baloo+Da&display=swap');

:root {
	--widget-bg: #c4dff7;
	--zone-bg: #252525;
	--zone-bord: #000;
	--placeholder: rgba(0, 0, 0, 0.5);
	--no-drag: rgba(100, 100, 100, 0.2);
}

body {
	padding-bottom: 50px;
	overflow-y: scroll;
	overflow-x: scroll;
}

.zone_div {
	width: 100%;
}

.flexgrid-container {
	position: absolute;
	left: 10px;
	top: 0;
	background: #f8f9fa;
	border: 1px solid var(--zone-bord);
	width: 1020px;
}

.grid-settings {
	position: sticky;
	top: 0;
}

/* 左侧的portlet样式待选区*/
.widget-holder {
	position: absolute;
	left: 0px;
	top: 1px;
	width: 210px;
	height: auto;
	background: #f8f9fa;
	border-radius: 5px;
	overflow-y: scroll;
	overflow-x: hidden;
	border: 1px solid #333;
}

.widget-holder .ui-label {
	position: relative;
	color: rgb(24, 24, 24);
	font-weight: bold;
	width: auto;
	text-align: center;
}

.widget-holder .ui-sortable-placeholder {
	visibility: hidden !important;
}

.widget-holder .fg-widget {
	height: 210px;
	width: 210px;
	position: relative;
	display: inline-block;
}

/* portlet 内嵌图标 */
.inner-icon {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	font-size: 16px;
}

.fg-widget-handle {
	cursor: move;
}

/* 移动portlet */
.move-widget {
	position: absolute;
	left: 10px;
	top: 10px;
	color: #222;
	z-index: 9;
}

.line1, .line2 {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 1px;
	background: red;
}

.line2 {
	background: blue;
}


/* 工具栏，右侧按钮 */
.btn {
	background: #fff;
	color: #222;
	font-weight: bold;
	border: 1px solid #222;
	border-radius: 5px;
}

/* 清空画布 */
.clear-flexgrid, .add-row, .remove-row {
	margin-left: 10px;
	transition: 0.3s;
}

/* 添加，保存按钮 */
.fg-add-widget, .save-flexgrid {
	float: right;
	margin-left: 5px;
	margin-right: 5px;
	transition: 0.3s;
}

.btn:active {
	transform-origin: 50% 50%;
	transform: scale(0.9);
}

.fg-col {
	position: absolute !important;
}

.fg-col.fg-gridlines {
	outline: 1px solid rgba(0, 0, 0, 0.1);
}

.relative {
	position: relative !important;
}

.flexgrid-container, .zone-out {
	position: relative;
	display: inline-block;
	float: left;
	border-radius: 5px;
}

.flexgrid-helper {
	display: block;
	position: sticky;
	top: 2px;
	height: 40px;
	padding: 5px;
	background: #ccc;
	z-index: 100000;
	border-radius: 5px;
}

.flexgrid-grid, .zone-out-inner {
	position: absolute;
	top: 45px;
	right: 5px;
	bottom: 5px;
	left: 5px;
	height: 100%;
}

.fg-enabled-col {
	height: auto;
	width: auto;
}

.zone-txt {
	font-family: 'Baloo Da', cursive;
	color: var(--wig-color);
	font-size: 18px;
	position: absolute;
	left: 5px;
}


.flexgrid-container .fg-widget {
	position: relative;
	float: left;
}

.fg-widget {
	border-radius: 5px;
}

.fg-widget-inner {
	position: absolute;
	background: var(--widget-bg);
	z-index: 8;
	top: 5px;
	left: 5px;
	right: 5px;
	bottom: 5px;
	border-radius: 5px;
	box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}


.flexgrid-grid .fg-widget:hover .fg-resize-widget, .flexgrid-grid .fg-widget:hover .fg-remove-widget {
	display: block;
}

.fg-widget-placeholder {
	border: 1px dashed rgba(0, 0, 0, 0.5) !important;
	border-radius: 5px;
	background: rgba(0, 0, 0, 0.3);
	top: 5px;
	left: 5px;
	bottom: 5px;
	z-index: 3;
	position: absolute;
}

.hold-col .fg-widget-placeholder {
	opacity: 0;
}

/* 向右下方向拖拽大小 */
.ui-resizable-se {
	height: 20px;
	width: 20px;
	position: absolute;
	bottom: 5px;
	right: 5px;
	opacity: 0;
	cursor: se-resize;
}

.ui-resizable-sw {
	display: none !important;
}

.fg-resize-widget {
	color: var(--wig-color);
	font-size: 15px;
	transform: rotate(45deg);
	position: absolute;
	bottom: 6px;
	right: 9px;
	display: none;
	z-index: 9;
}

.fg-remove-widget {
	color: var(--wig-color);
	position: absolute;
	top: 10px;
	right: 11px;
	font-size: 15px;
	cursor: pointer;
	display: none;
	z-index: 9;
}

.ui-resizable-resizing {
	border: 1px dashed var(--widget-bg) !important;
}

.grab {
	cursor: grab !important;
}

.grabbing {
	cursor: grabbing !important;
}

.dragging {
	z-index: 9999;
}

.not-dragging {
	background: var(--no-drag);
}


@media screen and (max-width: 1024px) {
	.fg-widget .fg-remove-widget {
		display: block;
	}

	.fg-widget .fg-resize-widget {
		display: block;
	}
}

.animate {
	animation-name: pop;
	animation-iteration-count: 1;
	animation-duration: 0.3s;
	animation-timing-function: ease-in-out;
	z-index: 9999 !important;
}

@keyframes pop {
	0% {
		top: 5px;
		right: 5px;
		bottom: 5px;
		left: 5px;
	}

	50% {
		top: 0px;
		right: 0px;
		bottom: 0px;
		left: 0px;
	}

	100% {
		top: 5px;
		right: 5px;
		bottom: 5px;
		left: 5px;
	}
}


/* width */
.widget-holder::-webkit-scrollbar {
	width: 8px;
}

/* Track */
.widget-holder::-webkit-scrollbar-track {
	background: transparent;
}

/* Handle */
.widget-holder::-webkit-scrollbar-thumb {
	background: var(--zone-bord);
	border-radius: 4px;
}

/* Handle on hover */
.widget-holder::-webkit-scrollbar-thumb:hover {
	background: #111;
}

.something-changed {
	color: #b81825;
	font-weight: bold;
	display: none;
}

.ui-resizable-handle.ui-resizable-s {
	height: 15px;
	position: absolute;
	bottom: -15px;
	left: -2px;
	right: -2px;
	background: #000;
}


/* toggle gridlines */

.view-gridlines-div {
	width: fit-content;
	display: inline-block;
}

.view-gridlines-label {
	padding-right: 10px;
	color: white;
}

.toggle {
	display: inline-block;
	width: fit-content;
	padding-left: 10px;
	border-radius: 50px;
	transition: 0.3s;
	cursor: pointer;
	background: #fff;
	border: 2px solid #111;
	position: relative;
}

.toggle input[type="checkbox"] {
	opacity: 0;
	z-index: 1;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.toggle label {
	min-height: 20px;
	margin-bottom: 0;
	font-weight: normal;
	cursor: pointer;
	width: 40px;
	height: 20px;
	color: #91a6ff;
}

.toggle label::after {
	content: "";
	display: inline-block;
	position: absolute;
	width: 20px;
	height: 20px;
	left: 0px;
	margin-left: 5px;
	margin-top: 3px;
	border: 2px solid #222;
	border-radius: 50%;
	background-color: #fff;
	transition: 0.3s;
}

.toggle input[type="checkbox"]:checked+label::after {
	left: 20px;
	background-color: #222;
}

.display-inline {
	display: inline-block;
}


.ui-resizable-s {
	z-index: 9999 !important;
	height: 17px;
	position: absolute;
	bottom: 15px;
	left: 20px;
	right: 20px;
	cursor: s-resize;
	background: rgba(0, 0, 0, 0.2);
	border-radius: 0 0 5px 5px;
	display: none !important;
}

.ui-resizable-s::after, .ui-resizable-s::before {
	color: white;
	font-size: 12px;
	content: '\f078';
	font-family: 'Font Awesome 5 Free';
	font-weight: 600;
	position: absolute;
	top: 0px;
}

.ui-resizable-s::after {
	right: 5px;
}

.ui-resizable-s::before {
	left: 5px;
}

.portlet-form {
	width: 400px;
	position: absolute;
	z-index: 9999 !important;
	left: 1050px;
}

.portlet-form form {
	margin: 20px;
}

.portlet-form .inner-container {
	border: 1px solid #333;
	border-radius: 5px;
}

.portlet-form .portlet-banner {
	height: 40px;
	background-color: #ccc;
	font-weight: bold;
	font: size 16px;
	border-radius: 5px;
}

.portlet-form .portlet-banner span {
	margin-left: 10px;
	padding: 5px;
}

.portlet-form .portlet-banner .banner-title {
	float: left;
	text-align: center;
}

.portlet-form .portlet-banner .banner-button {
	float: right;
	margin-right: 5px;
	transition: 0.3s;
}